//火车模块路由
var train = [{
  path: '/train/trainDate',
  name: 'trainDate',
  component(resolve) {
    require(['../views/before/trainDate.vue'], resolve);
  }
}, {
  path: '/train/trainList',
  name: 'trainList',
  component(resolve) {
    require(['../views/before/trainList.vue'], resolve)
  }
}, {
  path: '/train/staffList',
  name: 'staffList',
  component(resolve) {
    require(['../views/before/staffList.vue'], resolve)
  }
}, {
  path: '/train/trainListDetail',
  name: 'trainListDetail',
  component(resolve) {
    require(['../views/before/trainListDetail.vue'], resolve)
  }
},{
  path: '/train/orderDetail',
  name: 'orderDetail',
  component (resolve) {
    require(['../views/orderDetail.vue'], resolve)
  }
}, {
  path: '/train/trainBooking',
  name: 'trainBooking',
  component(resolve) {
    require(['../views/before/trainBooking.vue'], resolve)
  }
}, {
  path: '/train/trainUnsb',
  name: 'trainUnsb',
  component(resolve) {
    require(['../views/before/trainUnsb.vue'], resolve)
  }
}, {
  path: '/train/cityTrain',
  name: 'cityTrain',
  component(resolve) {
    require(['../views/before/cityTrain.vue'], resolve)
  }
}, {
  path: '/train/addPassenger',
  name: 'addPassenger',
  component(resolve) {
    require(['../views/addPassenger.vue'], resolve)
  }
}];
//新UI配置
var newTrain = [
  {path: '/train/index', name: 'train', component(resolve) {require(['../views/train.vue'], resolve);}},
  {path: '/train/trainOrder2', name: 'trainOrder2', component(resolve) {require(['../views/trainOrder.vue'], resolve);}},
  {path: '/train/trainMoment2', name: 'trainMoment2', component(resolve) {require(['../views/trainMoment.vue'], resolve);}}
];
export default train.concat(newTrain);
